/**
    店铺广告 组件
**/
(function(vc){

    vc.extends({
        propTypes: {
           callBackListener:vc.propTypes.string, //父组件名称
           callBackFunction:vc.propTypes.string //父组件监听方法
        },
        data:{
            viewStoreAdsInfo:{
                index:0,
                flowComponent:'viewStoreAdsInfo',
                adName:'',
adType:'',
seq:'',
startTime:'',
endTime:'',
advertType:'',
pageUrl:'',

            }
        },
        _initMethod:function(){
            //根据请求参数查询 查询 业主信息
            $that._loadStoreAdsInfoData();
        },
        _initEvent:function(){
            vc.on('viewStoreAdsInfo','chooseStoreAds',function(_app){
                vc.copyObject(_app, $that.viewStoreAdsInfo);
                vc.emit($props.callBackListener,$props.callBackFunction,$that.viewStoreAdsInfo);
            });

            vc.on('viewStoreAdsInfo', 'onIndex', function(_index){
                $that.viewStoreAdsInfo.index = _index;
            });

        },
        methods:{

            _openSelectStoreAdsInfoModel(){
                vc.emit('chooseStoreAds','openChooseStoreAdsModel',{});
            },
            _openAddStoreAdsInfoModel(){
                vc.emit('addStoreAds','openAddStoreAdsModal',{});
            },
            _loadStoreAdsInfoData:function(){

            }
        }
    });

})(window.vc);
